package training.osms.presentation.product;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

import training.framework.business.AbstractEntityController;
import training.framework.presentation.AbstractEditEntity;
import training.osms.business.controller.ProductController;
import training.osms.business.model.Product;
import training.osms.business.model.ProductSearchOptions;

@ManagedBean
@SessionScoped
public class EditProduct extends AbstractEditEntity<Integer, Product, ProductSearchOptions, ProductPanel>{

	private ProductController controller;
	
	public EditProduct(){
		super(ProductPanel.class, "editProduct", "O produto foi salvo com sucesso!");
		controller = new ProductController();
	}
	
	@Override
	protected AbstractEntityController<Integer, Product, ProductSearchOptions> getController() {
		return controller;
	}



}
